package com.newtouch.bxzs.common.base.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 产品销量统计信息实体类
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2020/12/31 15:13</td>
 * <td>xiongdianqiang</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author xiongdianqiang
 * @version 1.0.0
 * @since 1.0.0
 */
@Data
@TableName(value = "ASSISTANT_PRODUCT_SALES_STATISTICS")
public class ProductSalesStatistics implements Serializable {

    /**
     * 序列化
     */
    private static final long serialVersionUID = -3761573275732987968L;

    /**
     * 主键
     */
    @TableId(value = "PRODUCT_SALES_STATISTICS_ID", type = IdType.ASSIGN_UUID)
    private String productSalesStatisticsId;

    /**
     * 创建人id
     */
    @TableField(value = "CREATE_USER_ID")
    private String createUserId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "CREATE_TIME")
    private Date createTime;

    /**
     * 修改人id
     */
    @TableField(value = "UPDATE_USER_ID")
    private String updateUserId;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "UPDATE_TIME")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "MEMO")
    private String memo;

    /**
     * 产品编号
     */
    @TableField(value = "PRODUCT_CODE")
    private String productCode;

    /**
     * 产品名称
     */
    @TableField(value = "PRODUCT_NAME")
    private String productName;

    /**
     * 年月
     */
    @TableField(value = "MONTH")
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    private Date month;

    /**
     * 地区编码
     */
    @TableField(value = "REGION_CODE")
    private String regionCode;

    /**
     * 地区名称
     */
    @TableField(value = "REGION_NAME")
    private String regionName;

    /**
     * 总保费
     */
    @TableField(value = "TOTAL_PREMIUM")
    private BigDecimal totalPremium;

    /**
     * 数据来源
     */
    @TableField(value = "DATA_SOURCE")
    private String dataSource;

}
